import os,cPickle as p

data = 'contact.data'

f = os.path.isfile(data)

if f:
    print 'yes'
    dataFile = file(data)
    contact = p.load(dataFile);
    dataFile.close();
    
    for name, phone in contact.items():
        print 'name: %s, phone: %s' %(name,phone)
else:
    print 'not contact'